package com.zmn.oms.services.interfaces.conf.ordertag;

import com.zmn.oms.model.entity.conf.ordertag.ConfOrderTagCategory;
import com.zmn.oms.model.entity.conf.ordertag.ConfOrderTagCategoryQuery;

import java.util.List;

/**
 * 类描述：标签分类
 *
 * @author liuying
 * @date 2021/08/30 16:06
 */
public interface ConfOrderTagCategoryService {

    /**
     * 查询
     *
     * @param query
     * @return
     */
    List<ConfOrderTagCategory> listByQuery(ConfOrderTagCategoryQuery query);

    /**
     * 分页查询
     *
     * @return
     */
    List<ConfOrderTagCategory> listPageByQuery(ConfOrderTagCategoryQuery query);

    /**
     * 查询数量
     *
     * @param query
     * @return
     */
    int countByQuery(ConfOrderTagCategoryQuery query);

    /**
     * 根据ID 查询
     *
     * @param id
     * @return
     */
    ConfOrderTagCategory findCategoryById(Integer id);

    /**
     * 修改
     *
     * @param category
     */
    void updateCategoryById(ConfOrderTagCategory category);

    /**
     * 新增
     *
     * @param category
     */
    Integer insertCategory(ConfOrderTagCategory category);

}
